Copy code from monitor.pl and change to show all
